import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { RoleController } from './controllers/role/role.controller';
import { RoleEntity } from './entities/role.entity';
import { RoleService } from './services/role/role.service';

@Module({
  imports: [
    TypeOrmModule.forFeature([RoleEntity], {
      name: 'nest_test2',
      database: 'nest_test2',
      type: 'mysql',
    }),
  ],
  controllers: [RoleController],
  providers: [RoleService],
})
export class RoleModule {}
